package com.ty.day5.home;

import java.io.*;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/28 18:00
 */
public class Test01 {
    public static void main(String[] args) throws IOException {
        File from = new File("E:\\文件夹\\java\\1\\1.txt");
        File to = new File("E:\\文件夹\\java\\2");
        System.out.println(from.getParent());
//        IOUtil.copy(from,to);
        IOUtil.copyAll(from,to);
    }
}
